package com.ipay.wechat.pojo;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.Date;

/**
 * 关注用户信息表
 * @author yangkai.very
 *
 */
public class UserWechatInfo {
	private Integer id;
	private String openid;
	private Integer subscribe;
	private String nickname;
	private String sex;
	private String city;
	private String province;
	private String country;
	private String headimgurl;
	private Date subscribe_time;
	private String remark;
	private Integer groupid;

	/**
	 * @return the remark
	 */
	public String getRemark() {
		return remark;
	}

	/**
	 * @param remark the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * @return the groupid
	 */
	public Integer getGroupid() {
		return groupid;
	}

	/**
	 * @param groupid the groupid to set
	 */
	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public Integer getSubscribe() {
		return subscribe;
	}

	public void setSubscribe(Integer subscribe) {
		this.subscribe = subscribe;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		try {
			this.nickname =URLDecoder.decode(nickname, "utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}


	/**
	 * @return the subscribe_time
	 */
	public Date getSubscribe_time() {
		return subscribe_time;
	}

	/**
	 * @param subscribe_time
	 *            the subscribe_time to set
	 */
	public void setSubscribe_time(Date subscribe_time) {
		this.subscribe_time = subscribe_time;
	}

}
